<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			var i=100;
			function f1(){
				var j=10;
				alert(j+" in f1");
			}
			function f2(){
				alert("i in f2 "+i);
				alert(j+" in f2");
			}
		</script>
	</head>
	<body>
		<input type="button" value="f1"  onclick="f1()"/>
		<input type="button" value="f2"  onclick="f2()"/>
	</body>
</html>
